package net.zjitc.interfaces.charge;

/**
 * @Author admin
 * @Date 2019/3/22 11:00
 */
public class CarFactory {
    public static Car getCar(int a) {
        Car car;
        if(a==1){
            car=new Bus();
        }else{
            car=new Taxi();
        }
        return car;
    }
}
